package org.sword.wechat4j.api.response;

/**
 * 微信接口响应基类
 * Created by sean on 2016-07-17-0017.
 */
public class ApiResponse {
    public transient boolean success;
    private Long errcode;
    private String errmsg;

    public Long getErrcode() {
        return errcode;
    }

    public void setErrcode(Long errcode) {
        this.errcode = errcode;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public boolean isSuccess() {
        return errcode == null || errcode == 0;
    }
}
